
/**************************************************************************
*                                                                         *
*             Java Grande Forum Benchmark Suite - Version 2.0             *
*                                                                         *
*                            produced by                                  *
*                                                                         *
*                  Java Grande Benchmarking Project                       *
*                                                                         *
*                                at                                       *
*                                                                         *
*                Edinburgh Parallel Computing Centre                      *
*                                                                         * 
*                email: epcc-javagrande@epcc.ed.ac.uk                     *
*                                                                         *
*                                                                         *
*      This version copyright (c) The University of Edinburgh, 2001.      *
*                         All rights reserved.                            *
*                                                                         *
**************************************************************************/


import jgfutil.*; 

public class JGFAll {

  public static int nthreads;

  public static void main (String argv[]){

      if(argv.length != 0 ) {
        nthreads = Integer.parseInt(argv[0]);
      } else {
        System.out.println("The no of threads has not been specified, defaulting to 1");
        System.out.println("  ");
        nthreads = 1;
      }

    JGFInstrumentor.printHeader(1,0,nthreads);

    JGFBarrierBench tb = new JGFBarrierBench(nthreads);
    tb.JGFrun();

    JGFForkJoinBench fj = new JGFForkJoinBench(nthreads);
    fj.JGFrun();

    JGFSyncBench sb = new JGFSyncBench(nthreads);
    sb.JGFrun();

  }

}
